load("@batfish//skylark:junit.bzl", "junit_tests")
load("@rules_java//java:java_library.bzl", "java_library")

package(
    default_testonly = True,
    default_visibility = ["//visibility:public"],
)

java_library(
    name = "HopTestUtils",
    srcs = ["HopTestUtils.java"],
    deps = [
        "//projects/batfish-common-protocol:common",
        "@maven//:com_google_guava_guava",
    ],
)

junit_tests(
    name = "tests",
    srcs = glob([
        "**/*Test.java",
    ]),
    deps = [
        ":HopTestUtils",
        "//projects/batfish-common-protocol:common",
        "@maven//:com_fasterxml_jackson_core_jackson_core",
        "@maven//:com_google_code_findbugs_jsr305",
        "@maven//:com_google_guava_guava",
        "@maven//:com_google_guava_guava_testlib",
        "@maven//:junit_junit",
        "@maven//:org_hamcrest_hamcrest",
    ],
)
